<?php
session_start();
require_once('../class/member.php');



$member = new member;
$memberAccount = $member->checkUserAccount($_POST['username'],$_POST['password']);

if(empty($memberAccount)){
header('Location: ../index.php?login=4');
}else{
 $_SESSION['username']=$_POST['username'];
 
header('Location: ../index.php?login=3');
}

?>